-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor link series #1721
Refactor link series #1721
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
More direct calls to be replaced by wrappers
ntc.ValeurDeNTCOrigineVersExtremite[k] = lnk.directCapacities.getCoefficient(year, hourInYear); | ||
ntc.ValeurDeNTCExtremiteVersOrigine[k] = lnk.indirectCapacities.getCoefficient(year, hourInYear); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Performance improvement :
- swap loops on links & hours
- use
TimeSeries::getColumn
a single time instead ofTimeSeries::getCoefficient
8700 times
You could do it here, or open a ticket to fix the issue elsewhere as well (I noticed it here and there)
@payetvin what do you think ?
Kudos, SonarCloud Quality Gate passed! |
#1669